# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: person.py
@time: 2021/08/31
"""

class A:
    def __str__(self):
        return 12

class Person(A):

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def __str__(self):
        return f'name:{self.name},age:{self.age}'


class Student(Person):
    ...
    def __init__(self, name, age, score):
        Person.__init__(self, name,age)
        self.score = score


    def __str__(self):

        return '{},score:{}'.format(super(A,self).__str__(),self.score)

if __name__ == '__main__':
    pass
    stu = Student('zhangsan',21,98)
    print(stu)